<template>
	<view class="main">
		<u-navbar :is-back="true" title="添加规格" :background="background" back-icon-color="#000000" title-color="#000"
			title-bold="true"></u-navbar>
		<view class="all">
			<view class="content">
				<view class="cont_l">
					<view class="left">
						<u-icon name="plus" color="#E6E6E6" size="40"></u-icon>
					</view>
					<text class="up">上传图片</text>
				</view>
				<view class="cont_r">
					<text>500ml</text>
					<view class="remove">
						删除
					</view>
				</view>
			</view>

		</view>
		<view class="button" @click="router">
			添加
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#fff'
				},
				shopid: ''
			}
		},
		onLoad(data) {
			this.shopid = data.id
			this.getlist()
		},
		mounted() {

		},
		onShow() {},
		methods: {
			// /shopapi/goods/goodspecs

			getlist() {
				global.$http.request({
					url: '/shopapi/goods/goodspecs',
					data: {
						token: uni.getStorageSync('token'),
						id: this.shopid
					}
				})
			},
			router() {
				uni.navigateTo({
					url: '../add_operate/add_operate'
				})
			}

		}
	}
</script>
<style lang="scss">
	page {
		width: 750rpx;

		background-color: #f7f7f7;
		padding-bottom: 98rpx;

		.main {
			width: 750rpx;
			margin: 0 auto;

			.all {
				.content {
					display: flex;
					justify-content: space-between;
					background-color: #F2F2F2;

					.cont_l {
						display: flex;
						align-items: center;
						padding: 21rpx;

						.left {
							width: 98rpx;
							height: 98rpx;
							background: #FFFFFF;
							text-align: center;
							line-height: 98rpx;

						}

						.up {
							font-size: 24rpx;
							font-family: PingFang SC;
							font-weight: 400;
							color: #808080;
							padding-left: 24rpx;
						}
					}

					.cont_r {
						display: flex;
						align-items: center;

						text {
							font-size: 30rpx;
							font-family: PingFang SC;
							font-weight: bold;
							color: #666666;
							padding-right: 76rpx;
						}

						.remove {
							width: 90rpx;
							height: 80rpx;
							text-align: center;
							line-height: 80rpx;
							background: #FF0707;
							font-size: 24rpx;
							font-family: PingFang SC;
							font-weight: bold;
							color: #FFFFFF;
						}
					}
				}
			}

			.button {
				position: fixed;
				bottom: 0;
				text-align: center;
				line-height: 98rpx;
				width: 750rpx;
				height: 98rpx;
				background: #FE4E00;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
			}
		}
	}
</style>
